WPDiscourse\DiscoursePublish\DiscoursePublish D

Total Complexity 142
Dependencies 3
Dependents 3
Total lines 963
Lines of code 529
Logical lines of code 299
Comment lines 304
Methods 32
Properties 4

Methods 32

Method Rating Maintainability Complexity Lines of code
sync_to_discourse_work()
D
21
43 190
exclude_post()
A
60 9 11
validate_response_body()
A
53 8 22
get_response_attributes()
S
52 7 25
publish_post_after_save()
S
55 7 18
dc_add_post_meta()
S
53 5 23
handle_error()
S
53 5 21
has_excluded_tag()
S
58 5 15
xmlrpc_publish_post_to_discourse()
S
55 4 19
force_publish_post()
S
63 5 9
dc_get_post_meta()
S
58 3 16
__construct()
S
59 3 13
get_excluded_tag_slugs()
S
67 3 8
get_allowed_post_types()
S
67 3 8
validate_update_post_body()
S
78 3 3
validate_create_post_body()
S
78 3 3
remote_post()
S
62 3 10
auto_publish()
S
67 3 7
force_publish_allowed()
S
78 3 3
create_bad_response_notifications()
S
61 2 14
after_publish()
S
60 2 13
topic_blog_id_exists()
S
64 2 10
sync_to_discourse()
S
66 2 8
pin_discourse_topic()
S
58 1 15
change_post_owner()
S
59 1 14
handle_notice()
S
61 1 11
is_valid_sync_post_type()
S
72 1 5
sync_to_discourse_without_lock()
S
79 1 3
sanitize_title()
S
78 1 3
quick_edit()
S
79 1 3
post_is_deleted()
S
80 1 3
post_is_enqueued()
S
80 1 3